﻿using System;
using System.Collections;

namespace Eneta.Portal.Forum.Rss
{
    [Serializable]
    public class RssCategoryCollection : CollectionBase
    {
        // Methods
        public int Add(RssCategory rssCategory)
        {
            return base.List.Add(rssCategory);
        }

        public bool Contains(RssCategory rssCategory)
        {
            return base.List.Contains(rssCategory);
        }

        public void CopyTo(RssCategory[] array, int index)
        {
            base.List.CopyTo(array, index);
        }

        public int IndexOf(RssCategory rssCategory)
        {
            return base.List.IndexOf(rssCategory);
        }

        public void Insert(int index, RssCategory rssCategory)
        {
            base.List.Insert(index, rssCategory);
        }

        public void Remove(RssCategory rssCategory)
        {
            base.List.Remove(rssCategory);
        }

        // Properties
        public RssCategory this[int index]
        {
            get
            {
                return (RssCategory)base.List[index];
            }
            set
            {
                base.List[index] = value;
            }
        }
    }
}
